#include <stdio.h>
//阶乘
int main() {
    int n;
    scanf("%d",&n);
    int total=1;
    for (int i=1;i<=n;i++ )
    {
        total=total*i;
    }
    printf("total=%d\n",total);
    return 0;
}
